// 测试路径转换功能
function testPathConversion() {
    // 模拟Windows路径
    const windowsPath = "C:\\Users\\liunm\\SonicVale\\1\\1\\audio\\id_1.wav";
    const unixPath = "/Users/liunm/SonicVale/1/1/audio/id_1.wav";
    
    console.log("原始Windows路径:", windowsPath);
    console.log("原始Unix路径:", unixPath);
    
    // 测试转换函数
    if (window.native?.pathToFileUrl) {
        const convertedWindows = window.native.pathToFileUrl(windowsPath);
        const convertedUnix = window.native.pathToFileUrl(unixPath);
        
        console.log("转换后的Windows URL:", convertedWindows);
        console.log("转换后的Unix URL:", convertedUnix);
    } else {
        console.log("未找到pathToFileUrl函数");
    }
}

// 运行测试
testPathConversion();